/**
 * Copyright &copy; 2013-2016 山东易科德软件有限公司   All rights reserved.
 */
package cn.net.ecode.elec.bulk.entity;

import org.hibernate.validator.constraints.Length;

import cn.net.ecode.common.persistence.DataEntity;

/**
 * 便利团Entity
 *
 * @author AlanShelby
 * @version 2019-09-26
 */
public class ElecConvenientBulk extends DataEntity<ElecConvenientBulk> {

    private static final long serialVersionUID = 1L;
    private String bulkId;        // 团购编码
    private String bulkName;        // 团购名称
    private String btypeId;        // 企业编码
    private String btypeName;        // 企业名称
    private Double electricity;        // 电量

    public ElecConvenientBulk() {
        super();
    }

    public ElecConvenientBulk(String id) {
        super();
        this.id = id;
    }

    @Length(min = 0, max = 64, message = "企业编码长度不能超过 64 个字符")
    public String getBtypeId() {
        return btypeId;
    }

    public void setBtypeId(String btypeId) {
        this.btypeId = btypeId;
    }

    @Length(min = 0, max = 64, message = "企业名称长度不能超过 64 个字符")
    public String getBtypeName() {
        return btypeName;
    }

    public void setBtypeName(String btypeName) {
        this.btypeName = btypeName;
    }

    public Double getElectricity() {
        return electricity;
    }

    public void setElectricity(Double electricity) {
        this.electricity = electricity;
    }

    public String getBulkId() {
        return bulkId;
    }

    public void setBulkId(String bulkId) {
        this.bulkId = bulkId;
    }

    public String getBulkName() {
        return bulkName;
    }

    public void setBulkName(String bulkName) {
        this.bulkName = bulkName;
    }
}